package com.srwl.mytx.activity;

import android.os.Bundle;

import com.srwl.mytx.BasePresenter;

/**
 * Created by dahai2070 on 2018/2/23 0023.
 */

public abstract class BaseRegisterActivity <T extends BasePresenter> extends BaseActivity {
    //protected 修饰，子类才能访问
     protected   T  presenter;
    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
       presenter= initPresenter();
    }

    /**
     * 抽象类
     * 初始化Presenter
     * @return
     */
    abstract T initPresenter();
}
